import { createRouter, createWebHistory } from 'vue-router'
import type { RouteRecordRaw } from 'vue-router'
import BaseFormDemo from '../BaseFormDemo.vue'
import BaseTableDemo from '../BaseTableDemo.vue'
import FormTableDemo from '../FormTableDemo.vue'
// 定义路由
const routes: RouteRecordRaw[] = [

  {
    path: '/form',
    name: 'FormDemo',
    component: BaseFormDemo
  },
  {
    path: '/table',
    name: 'TableDemo',
    component: BaseTableDemo
  },
  {
    path: '/formtable',
    name: 'FormTableDemo',
    component: FormTableDemo
  }
 
]

// 创建路由实例
const router = createRouter({
  history: createWebHistory(),
  routes
})

export default router 